/**
 *free_malloc_macro.c
 *User macro encapsule free() and malloc()
 *@author:zt 2013-10-15
 */

#define DEBUG
#include<stdio.h>
#include<stdlib.h>
#include "util.h"



void* new_malloc(int size);

void func()
{
#define SIZE 100
}


int main(void)
{
	int size = 1024;
	char* buf = malloc(SIZE);
	int i;
	
	for(i = 0; i < SIZE; i++)
	{
		buf[i] = 'A' + i%26;
	}
	
	free(buf);

	new_malloc(size);
	getchar();
	return 0;	
}
